<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>跑步天数</title>
    </head>
    <body>
        <p id = "ans"></p>
        <script>
            let start = new Date("01/01/2022");
            let end = new Date("01/01/2023");
            let cnt = 0;
            while(start<end){
                if(start.getDay()===0||start.getDay()===6) ++cnt;
                else if(start.getDate()%10===1) ++cnt;
                start.setDate(start.getDate()+1);
            }
            document.getElementById("ans").innerHTML="一年中运动"+cnt+"天";
        </script>
    </body>
</html>